package com.jbp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jbp.model.*;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author lucheng feng
 * @email retailers@gmail.com
 * @date 2020-06-26 13:49:51
 */
public interface LotteryDao extends BaseMapper<Lottery> {

    List<Lottery> personRecord(Map<String,Object> params);

    List<PersonLottery> personLottery(Map<String,Object> params);

    List<Lottery> cufflList(Map<String,Object> params);

    Integer personCount(Map<String,Object> params);

    Integer personLotteryCount(Map<String,Object> params);

    //昨日奖池
    Long getZrjc();

    //今日奖池
    long getJrjc();

    //总奖池
    long getZjc(String startDate, String endDate);
    long getZjc2(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getZrBd();

    List<EventUserLuckBangdanModel> getJrBd();

    List<EventUserLuckBangdanModel> getZBd(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getZBdPay(String startDate, String endDate);
    List<EventUserLuckBangdanModel> getRoomZBdPay(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getZrBdYk();

    List<EventUserLuckBangdanModel> getJrBdYk();

    List<EventUserLuckBangdanModel> getZBdYk(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getYukalist(String startDate, String endDate);

    int getHaiouCount();

    List<EventUserLuckBangdanModel> getHaiozuBd1();
    List<EventUserLuckBangdanModel> getHaiozuBd2();
    List<EventUserLuckBangdanModel> getHaiozuBd3();
    List<EventUserLuckBangdanModel> getHaiozuBd4();

    List<LianMengBangdanModel> getLianMengBd(String startDate, String endDate);

    List<UserLianMengModel> getLianMengBdInroom(String startDate, String endDate, Integer roomId);

    List<LianMengBangdanModel> getHahaniuHd1Bd(String startDate, String endDate);

    List<LianMengBangdanModel> getHahaniuHd2Bd(String startDate, String endDate);
    List<LianMengBangdanModel> getNaonaoHd1Bd(String startDate, String endDate);

    Integer todayCount(Integer uid, Integer giftId);

    List<RoomRate> roomRate();

    List<RoomRate> ipRate();

    List<RoomRate> deviceRate();
}
